import { Role as RoleEntity } from '@/entity/Role';
import { PaginationConfig } from '@/types';

export interface RoleModifyRequest {
  name: string;
  znName: string;
  permissionIds: number[];
}

export interface CreateRoleRequest {
  name: string;
  znName: string;
  permissionIds: number[];
}

export type GetRolesRequest = PaginationConfig &
  Partial<Pick<RoleEntity, 'name' | 'znName' | 'id'>>;
